package com.example.demo01.exception;



// 导入必要的类
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

// 创建自定义异常类
@ResponseStatus(HttpStatus.NOT_FOUND) // 设置 HTTP 状态码为 404 (Not Found)
public class CustomerNotFoundException extends RuntimeException {

    // 构造函数，接收异常消息
    public CustomerNotFoundException(String message) {
        super(message);
    }
}
